<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<!--

   Copyright 2008 Michael Brackx

   Licensed under the Apache License, Version 2.0 (the "License");
   you may not use this file except in compliance with the License.
   You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

   Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an "AS IS" BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   See the License for the specific language governing permissions and
   limitations under the License.

-->
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<title>Triples REST methods</title>
	</head>
	<body>
		<h1>REST methods</h1>
		<table border="1">
			<tr>
				<th>URI</th>
				<th>HTTP methods</th>
				<th>description</th>
			</tr>
			<tr>
				<td>rest/triple</td>
				<td>POST</td>
				<td>create a triple from xml</td>
			</tr>
			<tr>
				<td>rest/triple/form</td>
				<td>POST</td>
				<td>create a triple from a form</td>
			</tr>
			<tr>
				<td>rest/triple/{id}</td>
				<td>GET, PUT, DELETE</td>
				<td>read, update or delete a triple</td>
			</tr>
			<tr>
				<td>rest/triple/query/object/{object}/attribute/{attribute}</td>
				<td>GET</td>
				<td>find triples by object and attribute</td>
			</tr>
			<tr>
				<td>rest/triple/query/object/{object}/attribute/{attribute}/refs</td>
				<td>GET</td>
				<td>find triples by object and attribute, return references</td>
			</tr>
			<tr>
				<td>rest/triple/query/object/{object}/attribute/{attribute}/count</td>
				<td>GET</td>
				<td>find triples by object and attribute, return the count</td>
			</tr>
			<tr>
				<td>rest/triple/query/object/{object}/attribute/{attribute}/value</td>
				<td>GET</td>
				<td>find a triple by object and attribute, return its value</td>
			</tr>
			<tr>
				<td>rest/triple/query/object/{object}/attribute/{attribute}/values</td>
				<td>GET</td>
				<td>find triples by object and attribute, return their values (newline separated)</td>
			</tr>
			<tr>
				<td>rest/triple/query/object/{object}/;attribute={attribute};attribute={attribute}...</td>
				<td>GET</td>
				<td>recusively find triples by object and attribute using values as objects for next attribute</td>
			</tr>
			<tr>
				<td><a href="rest/triple/query/all">rest/triple/query/all</a></td>
				<td>GET</td>
				<td>find all triples</td>
			</tr>
			<tr>
				<td><a href="rest/triple/query/all/refs">rest/triple/query/all/refs</a></td>
				<td>GET</td>
				<td>find all triples, return references</td>
			</tr>
			<tr>
				<td><a href="rest/triple/query/all/count">rest/triple/query/all/count</a></td>
				<td>GET</td>
				<td>find all triples, return the count</td>
			</tr>
		</table>
	</body>
</html>